#!/bin/sh
SUNXI_TOOL_PATH=/home/ggj/Downloads/sunxi-tools/
adb shell mkdir /data/local/tmp/nanda 1>/dev/null
adb shell busybox mount /dev/block/nanda /data/local/tmp/nanda
${SUNXI_TOOL_PATH}/fex2bin script.fex script.bin 
adb push ./script.bin /data/local/tmp/nanda/script.bin
#adb shell busybox umount /data/local/tmp/nanda
rm script.bin
adb reboot
